﻿using ProjectManage.Core.Entity.SYS;

namespace ProjectManage.Application.System.SendData
{
    public class UserSendData : IEntitySeedData<SysUser>
    {
        // 配置种子数据
        public IEnumerable<SysUser> HasData(DbContext dbContext, Type dbContextLocator)
        {
            return new List<SysUser>
            {
                new SysUser { Id = new Guid("7a8045ec-29c4-44fc-8d6a-356262ca35c5"), 
                              Account = "Admin" ,
                              Name="管理员", 
                              Password = MD5Encryption.Encrypt("!123456"),
                              CreatedName ="管理员",
                              CreatedTime = DateTime.Now },
            };
        }
    }
}
